<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<form role="form">
	<input type="hidden" name="id" value="${m.id }">
	<div class="form-body">
		<div class="form-group">
			<label>用户名：</label>
			<input type="text" class="form-control" name="username" value="${m.username }" ${m==null?"":"disabled" }>
		</div>
		<div class="form-group">
			<label>密码：</label>
			<input type="text" class="form-control" name="password">
		</div>
		<div class="form-group">
			<label>角色分配</label>
			
			<div class="checkbox-list">
				<c:forEach items="${roles }" var="r">
					<label class="checkbox-inline">
					<input type="checkbox" name="roleIds" value="${r.id }" ${r.hasRole?"checked":"" }> ${r.roleName } </label>
				</c:forEach>
			</div>

			
		</div>
	</div>
</form>
